package lime.xquery;

import lime.xquery.view.XQueryParametersView;
import lime.xquery.view.XQueryResultsView;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class XQueryPerspective implements IPerspectiveFactory {

	public static final String ID = "lime.xquery.perspective";
	
	@Override
	public void createInitialLayout(IPageLayout layout) {
		
		layout.setEditorAreaVisible(true);
		layout.setFixed(true);
		
		layout.addView(XQueryResultsView.ID, IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA);
		layout.addView(XQueryParametersView.ID, IPageLayout.RIGHT, 0.6f, IPageLayout.ID_EDITOR_AREA);
		
	}

}
